package com.partners.model;

/**
 * @author liangyongle
 * @date 2018/7/30 0030
 */
public class ApiResult<T>{
    private Integer code=200;
    private String msg;

    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString(){
        final StringBuilder sb = new StringBuilder("ApiResult{");
        sb.append("code=").append(code);
        sb.append(",msg='").append(msg).append('\'');
        sb.append(", data=").append(data);
        sb.append('}');
        return sb.toString();
    }
}
